/**
 ********************************************************************
 * @author roocket
 * @file    clien.h
 * @version V0.0.0
 * @date    2024/3/22
 * @brief   This file is to indicate client functions. 
 * @attention Code file rules:
 * rule: file encoding use UTF8;
 * rule: max line length 120 characters;
 * rule: line separator \r\n;
 * rule: use clion auto code format tool.
 */

#ifndef _CLIENT_H_
#define _CLIENT_H_

#include "socket.h"

/* operations for client's */
int client_init_socket(const char *address, const unsigned short port);

int client_get_data(int fd, void *user);

int client_set_data(int fd, void *sent, int length);

void client_del_socket(int fd);

#endif /* _CLIENT_H_ */
